package com.example.test.advice.第三章_类_对象_方法.建议41_让多继承成为现实;

public class Son extends FatherImpl implements Mother{

    @Override
    public int strong() {
        return super.strong()+1;
    }

    @Override
    public int kind() {
        return new MontherSpecial().kind();
    }

    private class MontherSpecial extends MotherImpl{

        //儿子温柔指数降低了
        @Override
        public int kind() {
            return super.kind()-1;
        }
    }
}
